package com.pansoft.kline.model;

import java.io.Serializable;
import java.util.List;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/11/20 15:52
 * @desc : 市值的model
 * @version: 1.0
 */
public class KLineMarketValueModel implements Serializable {

    /**
     * code : 0
     * data : {"caps":[{"cap":8.5480575910294E10,"volume":1469692.68855,"total_supply":17384687,"available_supply":17384687,"max_supply":21000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7496,"ticker":{"id":"7496","high":5289.8359437,"low":4846,"buy":5045.2767703631,"sell":5045.2767703631,"last":5045.2767703631,"vol":1221072.5978548,"open":5217.8363080917,"time":1542681125459}},{"cap":2.0481137202859E10,"volume":2.7230977183641E9,"total_supply":99991780039,"available_supply":40327341704,"max_supply":100000000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7845,"ticker":{"id":"7845","high":0.509133572,"low":0.477051798,"buy":0.50649525839924,"sell":0.50649525839924,"last":0.50649525839924,"vol":2.6884149034067E9,"open":0.50101633774843,"time":1542681125633}},{"cap":1.5882920495679E10,"volume":1.848923926644E7,"total_supply":1.0330712881E8,"available_supply":1.0330712881E8,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7843,"ticker":{"id":"7843","high":159,"low":145.7362,"buy":154.53774513398,"sell":154.53774513398,"last":154.53774513398,"vol":1.7520594937428E7,"open":157.33777001971,"time":1542681125629}},{"cap":4.7724124470865E9,"volume":435551.03462,"total_supply":17467600,"available_supply":17467600,"max_supply":21000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7841,"ticker":{"id":"7841","high":283.68455178438,"low":220.1521081688,"buy":274.90669034997,"sell":274.90669034997,"last":274.90669034997,"vol":1937879.0155265,"open":281.21400867064,"time":1542681125609}},{"cap":4.3844303669287E9,"volume":5.742564539324E8,"total_supply":1.0448310070683E11,"available_supply":1.926493419497E10,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8525,"ticker":{"id":"8525","high":0.2447,"low":0.2245190586,"buy":0.23580909713217,"sell":0.23580909713217,"last":0.23580909713217,"vol":9.8698377047494E8,"open":0.23695866454818,"time":1542681124570}},{"cap":3.8566765040193E9,"volume":2.8923601845372E8,"total_supply":1.00624511993E9,"available_supply":9.062451176E8,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7505,"ticker":{"id":"7505","high":4.2556659662155,"low":4.012957,"buy":4.2368690594308,"sell":4.2368690594308,"last":4.2368690594308,"vol":4.0115714801379E8,"open":4.1507202166273,"time":1542681125633}},{"cap":2.2948182755503E9,"volume":1.607154350018E7,"total_supply":5.923158816E7,"available_supply":5.923158816E7,"max_supply":84000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7844,"ticker":{"id":"7844","high":38.800446774406,"low":35.94,"buy":38.794669043291,"sell":38.794669043291,"last":38.794669043291,"vol":2.0801357994325E7,"open":37.884702100888,"time":1542681125629}},{"cap":1.7641649593602E9,"volume":5.370977071947E9,"total_supply":2.5801095021E9,"available_supply":1.75642173562E9,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8660,"ticker":{"id":"8660","high":1.03106297,"low":0.954,"buy":1.0042891759914,"sell":1.0042891759914,"last":1.0042891759914,"vol":7.2052251210708E7,"open":1.0022913957319,"time":1542681122202}},{"cap":1.3825633225729E9,"volume":1.0392761035632E9,"total_supply":31112483745,"available_supply":25927070538,"max_supply":45000000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8493,"ticker":{"id":"8493","high":0.092375461734082,"low":0.05112,"buy":0.053358217793953,"sell":0.053358217793953,"last":0.053358217793953,"vol":1.2037428441463E9,"open":0.053783937162233,"time":1542681125636}},{"cap":1.2587632833709E9,"volume":432697.05474,"total_supply":1.658316313E7,"available_supply":1.658316313E7,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8492,"ticker":{"id":"8492","high":78.78354432353,"low":72.00173116255,"buy":76.183800833456,"sell":76.183800833456,"last":76.183800833456,"vol":353570.26750926,"open":77.87666919878,"time":1542681125526}},{"cap":1.0775168280228E9,"volume":6.37032514073E9,"total_supply":99000000000,"available_supply":6.57481116451E10,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8524,"ticker":{"id":"8524","high":0.01676,"low":0.0156,"buy":0.016547713238025,"sell":0.016547713238025,"last":0.016547713238025,"vol":9.3921149687215E9,"open":0.016576008080039,"time":1542681125605}},{"cap":1.0047065722596E9,"volume":5.181500268868E7,"total_supply":2779530283,"available_supply":2779530283,"max_supply":2779530283,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8601,"ticker":{"id":"8601","high":0.37076,"low":0.32487129,"buy":0.36557009885713,"sell":0.36557009885713,"last":0.36557009885713,"vol":5.0060192755371E7,"open":0.36679335820197,"time":1542681125609}},{"cap":9.7067684476161E8,"volume":1623581.30509,"total_supply":8453734.9,"available_supply":8453734.9,"max_supply":18900000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8514,"ticker":{"id":"8514","high":129,"low":109.054036,"buy":116.19485377692,"sell":116.19485377692,"last":116.19485377692,"vol":3832553.7571231,"open":115.06217112795,"time":1542681125517}},{"cap":8.9621112865397E8,"volume":3276010.08541,"total_supply":190799315,"available_supply":130799315,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8587,"ticker":{"id":"8587","high":7.068,"low":6.4664239964692,"buy":6.838856513631,"sell":6.838856513631,"last":6.838856513631,"vol":3792784.0551864,"open":6.9512927619487,"time":1542681125635}},{"cap":7.7526625716542E8,"volume":1.7205255724551E8,"total_supply":8999999999,"available_supply":8999999999,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8515,"ticker":{"id":"8515","high":0.10039124609692,"low":0.0796,"buy":0.086294111704288,"sell":0.086294111704288,"last":0.086294111704288,"vol":1.3688816950678E8,"open":0.085254196924877,"time":1542681124570}},{"cap":6.9033809219548E8,"volume":3.812702350771E7,"total_supply":106159638,"available_supply":106159638,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7846,"ticker":{"id":"7846","high":6.5308946612737,"low":6.11306325,"buy":6.5306317719748,"sell":6.5306317719748,"last":6.5306317719748,"vol":5.0809940610828E7,"open":6.4489852743291,"time":1542681125633}},{"cap":6.864929991062E8,"volume":2.325656077122E7,"total_supply":100000000,"available_supply":65000000,"max_supply":100000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8500,"ticker":{"id":"8500","high":10.884,"low":10.046573590466,"buy":10.57152371596,"sell":10.57152371596,"last":10.57152371596,"vol":2.1380294185313E7,"open":10.801500358991,"time":1542681125636}},{"cap":5.2759667408825E8,"volume":1270286.23011,"total_supply":5272731.25,"available_supply":5272731.25,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8483,"ticker":{"id":"8483","high":102.88771296403,"low":95.453,"buy":101.09797246728,"sell":101.09797246728,"last":101.09797246728,"vol":1160723.0221122,"open":98.080753326875,"time":1542681125633}},{"cap":5.0547282234642E8,"volume":5611982.73047,"total_supply":7.6330692969E8,"available_supply":6.0748904089E8,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8662,"ticker":{"id":"8662","high":0.956630939,"low":0.6003,"buy":0.85700027654712,"sell":0.85700027654712,"last":0.85700027654712,"vol":2407940.9344663,"open":0.89148792674662,"time":1542681124020}},{"cap":4.5668648531701E8,"volume":339822.74273,"total_supply":1.745248609E7,"available_supply":1.735248609E7,"max_supply":21000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8518,"ticker":{"id":"8518","high":27.256529096477,"low":25.370716,"buy":26.391135004088,"sell":26.391135004088,"last":26.391135004088,"vol":255397.85244388,"open":26.381008016011,"time":1542681120435}}],"count":100}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * caps : [{"cap":8.5480575910294E10,"volume":1469692.68855,"total_supply":17384687,"available_supply":17384687,"max_supply":21000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7496,"ticker":{"id":"7496","high":5289.8359437,"low":4846,"buy":5045.2767703631,"sell":5045.2767703631,"last":5045.2767703631,"vol":1221072.5978548,"open":5217.8363080917,"time":1542681125459}},{"cap":2.0481137202859E10,"volume":2.7230977183641E9,"total_supply":99991780039,"available_supply":40327341704,"max_supply":100000000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7845,"ticker":{"id":"7845","high":0.509133572,"low":0.477051798,"buy":0.50649525839924,"sell":0.50649525839924,"last":0.50649525839924,"vol":2.6884149034067E9,"open":0.50101633774843,"time":1542681125633}},{"cap":1.5882920495679E10,"volume":1.848923926644E7,"total_supply":1.0330712881E8,"available_supply":1.0330712881E8,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7843,"ticker":{"id":"7843","high":159,"low":145.7362,"buy":154.53774513398,"sell":154.53774513398,"last":154.53774513398,"vol":1.7520594937428E7,"open":157.33777001971,"time":1542681125629}},{"cap":4.7724124470865E9,"volume":435551.03462,"total_supply":17467600,"available_supply":17467600,"max_supply":21000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7841,"ticker":{"id":"7841","high":283.68455178438,"low":220.1521081688,"buy":274.90669034997,"sell":274.90669034997,"last":274.90669034997,"vol":1937879.0155265,"open":281.21400867064,"time":1542681125609}},{"cap":4.3844303669287E9,"volume":5.742564539324E8,"total_supply":1.0448310070683E11,"available_supply":1.926493419497E10,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8525,"ticker":{"id":"8525","high":0.2447,"low":0.2245190586,"buy":0.23580909713217,"sell":0.23580909713217,"last":0.23580909713217,"vol":9.8698377047494E8,"open":0.23695866454818,"time":1542681124570}},{"cap":3.8566765040193E9,"volume":2.8923601845372E8,"total_supply":1.00624511993E9,"available_supply":9.062451176E8,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7505,"ticker":{"id":"7505","high":4.2556659662155,"low":4.012957,"buy":4.2368690594308,"sell":4.2368690594308,"last":4.2368690594308,"vol":4.0115714801379E8,"open":4.1507202166273,"time":1542681125633}},{"cap":2.2948182755503E9,"volume":1.607154350018E7,"total_supply":5.923158816E7,"available_supply":5.923158816E7,"max_supply":84000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7844,"ticker":{"id":"7844","high":38.800446774406,"low":35.94,"buy":38.794669043291,"sell":38.794669043291,"last":38.794669043291,"vol":2.0801357994325E7,"open":37.884702100888,"time":1542681125629}},{"cap":1.7641649593602E9,"volume":5.370977071947E9,"total_supply":2.5801095021E9,"available_supply":1.75642173562E9,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8660,"ticker":{"id":"8660","high":1.03106297,"low":0.954,"buy":1.0042891759914,"sell":1.0042891759914,"last":1.0042891759914,"vol":7.2052251210708E7,"open":1.0022913957319,"time":1542681122202}},{"cap":1.3825633225729E9,"volume":1.0392761035632E9,"total_supply":31112483745,"available_supply":25927070538,"max_supply":45000000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8493,"ticker":{"id":"8493","high":0.092375461734082,"low":0.05112,"buy":0.053358217793953,"sell":0.053358217793953,"last":0.053358217793953,"vol":1.2037428441463E9,"open":0.053783937162233,"time":1542681125636}},{"cap":1.2587632833709E9,"volume":432697.05474,"total_supply":1.658316313E7,"available_supply":1.658316313E7,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8492,"ticker":{"id":"8492","high":78.78354432353,"low":72.00173116255,"buy":76.183800833456,"sell":76.183800833456,"last":76.183800833456,"vol":353570.26750926,"open":77.87666919878,"time":1542681125526}},{"cap":1.0775168280228E9,"volume":6.37032514073E9,"total_supply":99000000000,"available_supply":6.57481116451E10,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8524,"ticker":{"id":"8524","high":0.01676,"low":0.0156,"buy":0.016547713238025,"sell":0.016547713238025,"last":0.016547713238025,"vol":9.3921149687215E9,"open":0.016576008080039,"time":1542681125605}},{"cap":1.0047065722596E9,"volume":5.181500268868E7,"total_supply":2779530283,"available_supply":2779530283,"max_supply":2779530283,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8601,"ticker":{"id":"8601","high":0.37076,"low":0.32487129,"buy":0.36557009885713,"sell":0.36557009885713,"last":0.36557009885713,"vol":5.0060192755371E7,"open":0.36679335820197,"time":1542681125609}},{"cap":9.7067684476161E8,"volume":1623581.30509,"total_supply":8453734.9,"available_supply":8453734.9,"max_supply":18900000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8514,"ticker":{"id":"8514","high":129,"low":109.054036,"buy":116.19485377692,"sell":116.19485377692,"last":116.19485377692,"vol":3832553.7571231,"open":115.06217112795,"time":1542681125517}},{"cap":8.9621112865397E8,"volume":3276010.08541,"total_supply":190799315,"available_supply":130799315,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8587,"ticker":{"id":"8587","high":7.068,"low":6.4664239964692,"buy":6.838856513631,"sell":6.838856513631,"last":6.838856513631,"vol":3792784.0551864,"open":6.9512927619487,"time":1542681125635}},{"cap":7.7526625716542E8,"volume":1.7205255724551E8,"total_supply":8999999999,"available_supply":8999999999,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8515,"ticker":{"id":"8515","high":0.10039124609692,"low":0.0796,"buy":0.086294111704288,"sell":0.086294111704288,"last":0.086294111704288,"vol":1.3688816950678E8,"open":0.085254196924877,"time":1542681124570}},{"cap":6.9033809219548E8,"volume":3.812702350771E7,"total_supply":106159638,"available_supply":106159638,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":7846,"ticker":{"id":"7846","high":6.5308946612737,"low":6.11306325,"buy":6.5306317719748,"sell":6.5306317719748,"last":6.5306317719748,"vol":5.0809940610828E7,"open":6.4489852743291,"time":1542681125633}},{"cap":6.864929991062E8,"volume":2.325656077122E7,"total_supply":100000000,"available_supply":65000000,"max_supply":100000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8500,"ticker":{"id":"8500","high":10.884,"low":10.046573590466,"buy":10.57152371596,"sell":10.57152371596,"last":10.57152371596,"vol":2.1380294185313E7,"open":10.801500358991,"time":1542681125636}},{"cap":5.2759667408825E8,"volume":1270286.23011,"total_supply":5272731.25,"available_supply":5272731.25,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8483,"ticker":{"id":"8483","high":102.88771296403,"low":95.453,"buy":101.09797246728,"sell":101.09797246728,"last":101.09797246728,"vol":1160723.0221122,"open":98.080753326875,"time":1542681125633}},{"cap":5.0547282234642E8,"volume":5611982.73047,"total_supply":7.6330692969E8,"available_supply":6.0748904089E8,"max_supply":0,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8662,"ticker":{"id":"8662","high":0.956630939,"low":0.6003,"buy":0.85700027654712,"sell":0.85700027654712,"last":0.85700027654712,"vol":2407940.9344663,"open":0.89148792674662,"time":1542681124020}},{"cap":4.5668648531701E8,"volume":339822.74273,"total_supply":1.745248609E7,"available_supply":1.735248609E7,"max_supply":21000000,"incomes":0,"outputs":0,"net_inflows":0,"market_id":8518,"ticker":{"id":"8518","high":27.256529096477,"low":25.370716,"buy":26.391135004088,"sell":26.391135004088,"last":26.391135004088,"vol":255397.85244388,"open":26.381008016011,"time":1542681120435}}]
         * count : 100
         */

        private int count;
        private List<CapsBean> caps;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public List<CapsBean> getCaps() {
            return caps;
        }

        public void setCaps(List<CapsBean> caps) {
            this.caps = caps;
        }

        public static class CapsBean {
            /**
             * cap : 8.5480575910294E10
             * volume : 1469692.68855
             * total_supply : 17384687
             * available_supply : 17384687
             * max_supply : 21000000
             * incomes : 0
             * outputs : 0
             * net_inflows : 0
             * market_id : 7496
             * ticker : {"id":"7496","high":5289.8359437,"low":4846,"buy":5045.2767703631,"sell":5045.2767703631,"last":5045.2767703631,"vol":1221072.5978548,"open":5217.8363080917,"time":1542681125459}
             */

            private double cap;
            private double volume;
            private double total_supply;
            private double available_supply;
            private double max_supply;
            private double incomes;
            private double outputs;
            private double net_inflows;
            private double market_id;
            private TickerBean ticker;

            private int lastTrendType;

            public int getLastTrendType() {
                return lastTrendType;
            }

            public void setLastTrendType(int lastTrendType) {
                this.lastTrendType = lastTrendType;
            }

            public double getCap() {
                return cap;
            }

            public void setCap(double cap) {
                this.cap = cap;
            }

            public double getVolume() {
                return volume;
            }

            public void setVolume(double volume) {
                this.volume = volume;
            }

            public double getTotal_supply() {
                return total_supply;
            }

            public void setTotal_supply(double total_supply) {
                this.total_supply = total_supply;
            }

            public double getAvailable_supply() {
                return available_supply;
            }

            public void setAvailable_supply(double available_supply) {
                this.available_supply = available_supply;
            }

            public double getMax_supply() {
                return max_supply;
            }

            public void setMax_supply(double max_supply) {
                this.max_supply = max_supply;
            }

            public double getIncomes() {
                return incomes;
            }

            public void setIncomes(double incomes) {
                this.incomes = incomes;
            }

            public double getOutputs() {
                return outputs;
            }

            public void setOutputs(double outputs) {
                this.outputs = outputs;
            }

            public double getNet_inflows() {
                return net_inflows;
            }

            public void setNet_inflows(int net_inflows) {
                this.net_inflows = net_inflows;
            }

            public double getMarket_id() {
                return market_id;
            }

            public void setMarket_id(double market_id) {
                this.market_id = market_id;
            }

            public TickerBean getTicker() {
                return ticker;
            }

            public void setTicker(TickerBean ticker) {
                this.ticker = ticker;
            }

            public static class TickerBean {
                /**
                 * id : 7496
                 * high : 5289.8359437
                 * low : 4846
                 * buy : 5045.2767703631
                 * sell : 5045.2767703631
                 * last : 5045.2767703631
                 * vol : 1221072.5978548
                 * open : 5217.8363080917
                 * time : 1542681125459
                 */

                private String id;
                private double high;
                private double low;
                private double buy;
                private double sell;
                private double last;
                private double vol;
                private double open;
                private long time;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public double getHigh() {
                    return high;
                }

                public void setHigh(double high) {
                    this.high = high;
                }

                public double getLow() {
                    return low;
                }

                public void setLow(double low) {
                    this.low = low;
                }

                public double getBuy() {
                    return buy;
                }

                public void setBuy(double buy) {
                    this.buy = buy;
                }

                public double getSell() {
                    return sell;
                }

                public void setSell(double sell) {
                    this.sell = sell;
                }

                public double getLast() {
                    return last;
                }

                public void setLast(double last) {
                    this.last = last;
                }

                public double getVol() {
                    return vol;
                }

                public void setVol(double vol) {
                    this.vol = vol;
                }

                public double getOpen() {
                    return open;
                }

                public void setOpen(double open) {
                    this.open = open;
                }

                public long getTime() {
                    return time;
                }

                public void setTime(long time) {
                    this.time = time;
                }
            }
        }
    }
}
